<template>
  <div>
    <div class="main">
      <div class="main-hd">
        <p>{{ obj.title }}</p>
        <div class="main-item">
          <span>{{ obj.add_time | fromdata }}</span>
          <span>{{ obj.click }}次浏览</span>
          <span>分类：{{ obj.category }}</span>
        </div>
      </div>
      <div class="main-img">
        <van-image
          v-for="(item, i) in thumimage"
          :key="i"
          width="100px"
          height="100px"
          :src="item.src"
        />
        <p v-html="obj.content"></p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    obj: Object,
  },
};
</script>

<style lang="less" scoped>
.main {
  padding: 10px 5px;

  .main-hd {
    color: #0088d1;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    .main-item {
      display: flex;
      align-items: center;
      font-size: 12px;
      color: #999;
      padding-top: 5px;
      span {
        margin-right: 5px;
      }
    }
  }

  .main-img {
    .van-image {
      padding: 10px;
    }
    p {
      color: #666;
      margin-bottom: 40px;
    }
  }
}
</style>
